import request from '@/utils/request'

// 查询一天膳食食谱详情列表
export function listDetl(query) {
  return request({
    url: '/food/daymeals/list',
    method: 'get',
    params: query
  })
}

// 查询一天膳食食谱详情详细
export function getDetl(id) {
  return request({
    url: '/food/daymeals/' + id,
    method: 'get'
  })
}

// 新增一天膳食食谱详情
export function addDetl(data) {
  return request({
    url: '/food/daymeals',
    method: 'post',
    data: data
  })
}

// 修改一天膳食食谱详情
export function updateDetl(data) {
  return request({
    url: '/food/daymeals',
    method: 'put',
    data: data
  })
}

// 删除一天膳食食谱详情
export function delDetl(id) {
  return request({
    url: '/food/daymeals/' + id,
    method: 'delete'
  })
}
